<template>
  <div class="footer">
    <div class="footer-content">
      <span>© {{ currentYear }} 笔记管理系统</span>
      <span class="version">v1.0.0</span>
    </div>
  </div>
</template>

<script>
export default {
  name: 'Footer',
  computed: {
    /**
     * 获取当前年份
     * @returns {Number} 当前年份
     */
    currentYear() {
      return new Date().getFullYear()
    }
  }
}
</script>

<style scoped>
.footer {
  height: 50px;
  background: #fff;
  border-top: 1px solid #e6e6e6;
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer-content {
  text-align: center;
  color: #606266;
  font-size: 14px;
}

.version {
  margin-left: 10px;
  color: #909399;
}
</style>